package cn.gene.timeyan.pojo.search.entity;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

/**
 * 总查询*
 *
 * @author LWG
 * @date 2022/7/25 21:24
 * @since 1.0.0@gene.cn
 */
@Data
@Document(indexName = "timeyan_all_index2")
public class SeaEntity {
    @org.springframework.data.annotation.Id
    @ApiModelProperty(value="all id")
    private Long id;
    @Field(name = "help_title",type = FieldType.Text,
            analyzer = "ik_max_word",searchAnalyzer = "ik_max_word")
    @ApiModelProperty(value="求助标题")
    private String helpTitle;
    @Field(name = "help_content",type = FieldType.Text,
            analyzer = "ik_max_word",searchAnalyzer = "ik_max_word")
    @ApiModelProperty(value="求助正文")
    private String helpContent;
    @Field(name = "article_title",type = FieldType.Text,
            analyzer = "ik_max_word",searchAnalyzer = "ik_max_word")
    @ApiModelProperty(value="文章标题")
    private String articleTitle;
    @Field(name = "article_content",type = FieldType.Text,
            analyzer = "ik_max_word",searchAnalyzer = "ik_max_word")
    @ApiModelProperty(value="文章正文")
    private String articleContent;
}
